/*******************************************************************************
  * @file                   main.c
  * @Author:                MQjehovah                 mail:MQjehovah@hotmail.com
  * @version                1.0.0
  * @date                   2017.5.9
  * @brief                  
  ******************************************************************************
  * @attention
*******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "delay.h"
#include "USART_Driver.h"
#include "LED.h"
#include "MOTOR.h"
/* Definition ----------------------------------------------------------------*/

/* Functions -----------------------------------------------------------------*/
void RCC_Config()
{
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOC | RCC_APB2Periph_AFIO , ENABLE);
	RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM4, ENABLE);  
}
/*******************************************************************************
  * @brief  主函数              
  * @param  None              
  * @retval None              
  * @Note   None              
*******************************************************************************/
int main(void)
{
	int i;
	RCC_Config();
	USART1_Configuration();
	led_init();
	MOTOR_init();
	while(1)
	{
		led_flash(1,100,2);
	}
}
/*********************************END OF FILE**********************************/
